<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Expert extends Model
{
    use HasFactory,SoftDeletes;




    //education:教育
    protected $fillable=[
        'name',
        'position',//position：职称，
        'thumb',
        'profile',//profile：简介，
        'department', //department：科室，
        'duties',//duties：职务，
        'education',
        'hospital',

        ];
    public function videos(){
        return $this->belongsToMany(Video::class);
    }

}
